#pragma once
#include "Shader.h"
class Shader;
class Model
{
public:
	Model(const char *url, bool enableEBO = true);
	~Model();

	void ApplyShader(Shader* shader);

	Shader* GetShader();

	void Draw(const float* modelMat, const float* viewMat, const float* projMat);

private:

	void LinkAttribute();

	void Release();

private:
	Mesh* mesh = nullptr;

	GLuint VAO, VBO, EBO;

	Shader* shader = nullptr;
};

